package com.realdolmen.whiteyellowcross.servlet;

import java.io.IOException;
import java.util.Calendar;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.appengine.api.datastore.DatastoreServiceFactory;
import com.google.appengine.api.datastore.DatastoreService;
import com.realdolmen.whiteyellowcross.appengine.datastore.PersonelAppEngineDataStore;
import com.realdolmen.whiteyellowcross.appengine.datastore.WaitWorkShiftDayPlanAppEngineDataStore;
import com.realdolmen.whiteyellowcross.datastore.PersonelDataStore;
import com.realdolmen.whiteyellowcross.datastore.WaitWorkShiftDayPlanDataStore;
import com.realdolmen.whiteyellowcross.model.Personel;
import com.realdolmen.whiteyellowcross.model.WaitMonthPlanning;
import com.realdolmen.whiteyellowcross.model.WaitWorkShiftDayPlan;
import com.realdolmen.whiteyellowcross.service.PersonelPersistenceBasedService;
import com.realdolmen.whiteyellowcross.service.PersonelService;
import com.realdolmen.whiteyellowcross.service.PlanningService;
import com.realdolmen.whiteyellowcross.service.PlanningPersistenceBasedService;

@SuppressWarnings("serial")
public class PersonelServlet extends HttpServlet {

	
	private static final String LOAD_ALL_PERSONEL = "loadPersonel";
	private static final String UPDATE_PERSONEL = "updatePersonel";
	private static final String ADD_PERSONEL = "addPersonel";
	

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		StringBuffer resultingHtml = new StringBuffer();
		
		String action = req.getParameter("action");

		if (LOAD_ALL_PERSONEL.equals(action)) {

		}else if (UPDATE_PERSONEL.equals(action)) {

		}
		try {
			if (resultingHtml != null && resultingHtml.toString().length() > 0) {
				resp.getWriter().print(resultingHtml.toString());
				resp.getWriter().flush();
			}
		} catch (IOException ioe) {

		}
		
	}
	

}